package com.hk.demo.player.http;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @author: zhoug
 * @since: 2025-06-20
 */
public interface BaseRequests {
    String Login = "Login/UserLogin";

    /**
     * 登录
     *
     * @return
     */
    @POST(Login)
    Observable<HttpBaseResponse<LoginAccount>> login(@Body() Object params);

    /**
     * 根据id动态获取摄像头缓存播放地址
     *
     * @param params
     * @return
     */
    @POST("VI_Firmmonitor/GetCac_FirmMonitorUrlById")
    Observable<HttpBaseResponse<FirmMonitor>> getFirmMonitorPlayUrlById(@Body() Object params);

    /**
     * 根据Url动态获取摄像头缓存播放地址
     *
     * @param params
     * @return
     */
    @POST("VI_Firmmonitor/GetCac_FirmMonitorUrlByPlayUrl")
    Observable<HttpBaseResponse<FirmMonitor>> getFirmMonitorPlayUrlByPlayUrl(@Body() Object params);
}
